﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class promo_usermessage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request.QueryString["pnum"] != null)
            {
                string promonum = Request.QueryString["pnum"].ToString();

                if (promonum == "2")
                {
                    lblMessage.Text = "Thank You for submitting your details. ";
                }
            }
            else
            {
                lblMessage.Text = "Thank You for using CompareXpress. ";
            }

        }

    }

    protected void btnBack_Click(object sender, EventArgs e)
    {
        if (Request.QueryString["pnum"] != null)
        {
            string promonum = Request.QueryString["pnum"].ToString();

            if (promonum == "2")
            {
                Response.Redirect("china-home.aspx");
            }
        }
        else
        {
            Response.Redirect("promo.aspx");
        }
    }
}
